import request from '@/utils/request'

// 查询入职申请列表
export function listHumanEntry(query) {
  return request({
    url: '/oa/humanEntry/list',
    method: 'get',
    params: query
  })
}

// 查询入职申请详细
export function getHumanEntry(id) {
  return request({
    url: '/oa/humanEntry/' + id,
    method: 'get'
  })
}

// 新增入职申请
export function addHumanEntry(data) {
  return request({
    url: '/oa/humanEntry',
    method: 'post',
    data: data
  })
}

// 修改入职申请
export function updateHumanEntry(data) {
  return request({
    url: '/oa/humanEntry',
    method: 'put',
    data: data
  })
}

// 删除入职申请
export function delHumanEntry(id) {
  return request({
    url: '/oa/humanEntry/' + id,
    method: 'delete'
  })
}
